package org.mushroomdb.engine.optimizer.impl;

import org.mushroomdb.engine.operation.RelationOperation;
import org.mushroomdb.engine.optimizer.Optimizer;

public class JoinMethodDefiningOptimizer implements Optimizer {

	public RelationOperation optimize(RelationOperation relationOperation) {
		JoinMethodDefiningVisitor visitor = new JoinMethodDefiningVisitor(relationOperation);
		relationOperation.accept(visitor);
		return visitor.getInitialRelationOperation();
	}

}
